package com.charles.springcloud.alibaba.service;

import com.charles.common.CommonResult;
import com.charles.common.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @Author: 风中灵劲草
 * @Date: 2021/08/28/16:48
 * @Description:
 */
@Component
public class PaymentFallback implements PaymentService {
    @Override
    public CommonResult<Payment> getPaymentById(Long id) {
        return new CommonResult<>(444,"异常错误,启动Fegin兜底Fallback方法");
    }
}

